<div class="sidebar">
        <ul>
            <?php  foreach($site_list as $list){ ?>
                <li <?php if($list['id'] == $site['id']){?>class="selected"<?php }?>>
                    <?php if($site['type_set'] == 1 && $atype=='article'){?>
                        <a href="/article/index/<?php echo $list['url']?>.html"><?php echo $list['title']?></a>
                    <?php }elseif($site['type_set'] == 1 && $atype=='report'){?>
                        <a href="/report/index/<?php echo $list['url']?>.html"><?php echo $list['title']?></a>
                    <?php }else{?>
                        <a href="/site/<?php echo $url?>/<?php echo $list['url']?>.html"><?php echo $list['title']?></a>
                    <?php }?>
                </li>
            <?php }?>
        </ul>
</div>



 
 